<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GstRTSPMedia: GStreamer RTSP Server Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GStreamer RTSP Server Reference Manual">
<link rel="up" href="ch01.html" title="">
<link rel="prev" href="GstRTSPMediaFactoryURI.html" title="GstRTSPMediaFactoryURI">
<link rel="next" href="GstRTSPStream.html" title="GstRTSPStream">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GstRTSPMedia.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GstRTSPMedia.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GstRTSPMedia.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#GstRTSPMedia.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GstRTSPMediaFactoryURI.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GstRTSPStream.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GstRTSPMedia"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GstRTSPMedia.top_of_page"></a>GstRTSPMedia</span></h2>
<p>GstRTSPMedia — The media pipeline</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GstRTSPMedia.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="returnvalue">GstRTSPMedia</span></a> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-new" title="gst_rtsp_media_new ()">gst_rtsp_media_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GstElement</span> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-element" title="gst_rtsp_media_get_element ()">gst_rtsp_media_get_element</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-take-pipeline" title="gst_rtsp_media_take_pipeline ()">gst_rtsp_media_take_pipeline</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-permissions" title="gst_rtsp_media_set_permissions ()">gst_rtsp_media_set_permissions</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPPermissions.html" title="GstRTSPPermissions"><span class="returnvalue">GstRTSPPermissions</span></a> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-permissions" title="gst_rtsp_media_get_permissions ()">gst_rtsp_media_get_permissions</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-shared" title="gst_rtsp_media_set_shared ()">gst_rtsp_media_set_shared</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-is-shared" title="gst_rtsp_media_is_shared ()">gst_rtsp_media_is_shared</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-reusable" title="gst_rtsp_media_set_reusable ()">gst_rtsp_media_set_reusable</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-is-reusable" title="gst_rtsp_media_is_reusable ()">gst_rtsp_media_is_reusable</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-profiles" title="gst_rtsp_media_set_profiles ()">gst_rtsp_media_set_profiles</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GstRTSPProfile</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-profiles" title="gst_rtsp_media_get_profiles ()">gst_rtsp_media_get_profiles</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-protocols" title="gst_rtsp_media_set_protocols ()">gst_rtsp_media_set_protocols</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GstRTSPLowerTrans</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-protocols" title="gst_rtsp_media_get_protocols ()">gst_rtsp_media_get_protocols</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-eos-shutdown" title="gst_rtsp_media_set_eos_shutdown ()">gst_rtsp_media_set_eos_shutdown</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-is-eos-shutdown" title="gst_rtsp_media_is_eos_shutdown ()">gst_rtsp_media_is_eos_shutdown</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-address-pool" title="gst_rtsp_media_set_address_pool ()">gst_rtsp_media_set_address_pool</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPAddressPool.html" title="GstRTSPAddressPool"><span class="returnvalue">GstRTSPAddressPool</span></a> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-address-pool" title="gst_rtsp_media_get_address_pool ()">gst_rtsp_media_get_address_pool</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-buffer-size" title="gst_rtsp_media_set_buffer_size ()">gst_rtsp_media_set_buffer_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">guint</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-buffer-size" title="gst_rtsp_media_get_buffer_size ()">gst_rtsp_media_get_buffer_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-retransmission-time" title="gst_rtsp_media_set_retransmission_time ()">gst_rtsp_media_set_retransmission_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GstClockTime</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-retransmission-time" title="gst_rtsp_media_get_retransmission_time ()">gst_rtsp_media_get_retransmission_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-latency" title="gst_rtsp_media_set_latency ()">gst_rtsp_media_set_latency</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">guint</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-latency" title="gst_rtsp_media_get_latency ()">gst_rtsp_media_get_latency</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-setup-sdp" title="gst_rtsp_media_setup_sdp ()">gst_rtsp_media_setup_sdp</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-handle-sdp" title="gst_rtsp_media_handle_sdp ()">gst_rtsp_media_handle_sdp</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-prepare" title="gst_rtsp_media_prepare ()">gst_rtsp_media_prepare</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-unprepare" title="gst_rtsp_media_unprepare ()">gst_rtsp_media_unprepare</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPMedia.html#GstRTSPMediaStatus" title="enum GstRTSPMediaStatus"><span class="returnvalue">GstRTSPMediaStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-status" title="gst_rtsp_media_get_status ()">gst_rtsp_media_get_status</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-suspend-mode" title="gst_rtsp_media_set_suspend_mode ()">gst_rtsp_media_set_suspend_mode</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode"><span class="returnvalue">GstRTSPSuspendMode</span></a>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-suspend-mode" title="gst_rtsp_media_get_suspend_mode ()">gst_rtsp_media_get_suspend_mode</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-suspend" title="gst_rtsp_media_suspend ()">gst_rtsp_media_suspend</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-unsuspend" title="gst_rtsp_media_unsuspend ()">gst_rtsp_media_unsuspend</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-collect-streams" title="gst_rtsp_media_collect_streams ()">gst_rtsp_media_collect_streams</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-create-stream" title="gst_rtsp_media_create_stream ()">gst_rtsp_media_create_stream</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">guint</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-n-streams" title="gst_rtsp_media_n_streams ()">gst_rtsp_media_n_streams</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-stream" title="gst_rtsp_media_get_stream ()">gst_rtsp_media_get_stream</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-find-stream" title="gst_rtsp_media_find_stream ()">gst_rtsp_media_find_stream</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-seek" title="gst_rtsp_media_seek ()">gst_rtsp_media_seek</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-range-string" title="gst_rtsp_media_get_range_string ()">gst_rtsp_media_get_range_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-state" title="gst_rtsp_media_set_state ()">gst_rtsp_media_set_state</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-pipeline-state" title="gst_rtsp_media_set_pipeline_state ()">gst_rtsp_media_set_pipeline_state</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GstClock</span> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-clock" title="gst_rtsp_media_get_clock ()">gst_rtsp_media_get_clock</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GstClockTime</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-base-time" title="gst_rtsp_media_get_base_time ()">gst_rtsp_media_get_base_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-use-time-provider" title="gst_rtsp_media_use_time_provider ()">gst_rtsp_media_use_time_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-is-time-provider" title="gst_rtsp_media_is_time_provider ()">gst_rtsp_media_is_time_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GstNetTimeProvider</span> *
</td>
<td class="function_name">
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-time-provider" title="gst_rtsp_media_get_time_provider ()">gst_rtsp_media_get_time_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><span class="type">guint</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--buffer-size" title="The “buffer-size” property">buffer-size</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GstClock</span> *</td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--clock" title="The “clock” property">clock</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GstElement</span> *</td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--element" title="The “element” property">element</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--eos-shutdown" title="The “eos-shutdown” property">eos-shutdown</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">guint</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--latency" title="The “latency” property">latency</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">GstRTSPProfile</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--profiles" title="The “profiles” property">profiles</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">GstRTSPLowerTrans</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--protocols" title="The “protocols” property">protocols</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--reusable" title="The “reusable” property">reusable</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--shared" title="The “shared” property">shared</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--stop-on-disconnect" title="The “stop-on-disconnect” property">stop-on-disconnect</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode"><span class="type">GstRTSPSuspendMode</span></a></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--suspend-mode" title="The “suspend-mode” property">suspend-mode</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--time-provider" title="The “time-provider” property">time-provider</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">GstRTSPTransportMode</span></td>
<td class="property_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia--transport-mode" title="The “transport-mode” property">transport-mode</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia-new-state" title="The “new-state” signal">new-state</a></td>
<td class="signal_flags">Run Last</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia-new-stream" title="The “new-stream” signal">new-stream</a></td>
<td class="signal_flags">Run Last</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia-prepared" title="The “prepared” signal">prepared</a></td>
<td class="signal_flags">Run Last</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia-removed-stream" title="The “removed-stream” signal">removed-stream</a></td>
<td class="signal_flags">Run Last</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia-target-state" title="The “target-state” signal">target-state</a></td>
<td class="signal_flags">Run Last</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia-unprepared" title="The “unprepared” signal">unprepared</a></td>
<td class="signal_flags">Run Last</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMedia-struct" title="struct GstRTSPMedia">GstRTSPMedia</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMediaClass" title="struct GstRTSPMediaClass">GstRTSPMediaClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GstRTSPMedia.html#GstRTSPMediaStatus" title="enum GstRTSPMediaStatus">GstRTSPMediaStatus</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode">GstRTSPSuspendMode</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    GObject
    <span class="lineart">╰──</span> GstRTSPMedia
</pre>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.description"></a><h2>Description</h2>
<p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> contains the complete GStreamer pipeline to manage the
streaming to the clients. The actual data transfer is done by the
<a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> objects that are created and exposed by the <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a>.</p>
<p>The <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> is usually created from a <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a> when the
client does a DESCRIBE or SETUP of a resource.</p>
<p>A media is created with <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-new" title="gst_rtsp_media_new ()"><code class="function">gst_rtsp_media_new()</code></a> that takes the element that will
provide the streaming elements. For each of the streams, a new <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a>
object needs to be made with the <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-create-stream" title="gst_rtsp_media_create_stream ()"><code class="function">gst_rtsp_media_create_stream()</code></a> which takes
the payloader element and the source pad that produces the RTP stream.</p>
<p>The pipeline of the media is set to PAUSED with <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-prepare" title="gst_rtsp_media_prepare ()"><code class="function">gst_rtsp_media_prepare()</code></a>. The
prepare method will add rtpbin and sinks and sources to send and receive RTP
and RTCP packets from the clients. Each stream srcpad is connected to an
input into the internal rtpbin.</p>
<p>It is also possible to dynamically create <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> objects during the
prepare phase. With <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-status" title="gst_rtsp_media_get_status ()"><code class="function">gst_rtsp_media_get_status()</code></a> you can check the status of
the prepare phase.</p>
<p>After the media is prepared, it is ready for streaming. It will usually be
managed in a session with <a class="link" href="GstRTSPSession.html#gst-rtsp-session-manage-media" title="gst_rtsp_session_manage_media ()"><code class="function">gst_rtsp_session_manage_media()</code></a>. See
<a class="link" href="GstRTSPSession.html" title="GstRTSPSession"><span class="type">GstRTSPSession</span></a> and <a class="link" href="GstRTSPSessionMedia.html" title="GstRTSPSessionMedia"><span class="type">GstRTSPSessionMedia</span></a>.</p>
<p>The state of the media can be controlled with <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-state" title="gst_rtsp_media_set_state ()"><code class="function">gst_rtsp_media_set_state()</code></a>.
Seeking can be done with <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-seek" title="gst_rtsp_media_seek ()"><code class="function">gst_rtsp_media_seek()</code></a>.</p>
<p>With <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-unprepare" title="gst_rtsp_media_unprepare ()"><code class="function">gst_rtsp_media_unprepare()</code></a> the pipeline is stopped and shut down. When
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-eos-shutdown" title="gst_rtsp_media_set_eos_shutdown ()"><code class="function">gst_rtsp_media_set_eos_shutdown()</code></a> an EOS will be sent to the pipeline to
cleanly shut down.</p>
<p>With <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-shared" title="gst_rtsp_media_set_shared ()"><code class="function">gst_rtsp_media_set_shared()</code></a>, the media can be shared between multiple
clients. With <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-set-reusable" title="gst_rtsp_media_set_reusable ()"><code class="function">gst_rtsp_media_set_reusable()</code></a> you can control if the pipeline
can be prepared again after an unprepare.</p>
<p>Last reviewed on 2013-07-11 (1.0.0)</p>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gst-rtsp-media-new"></a><h3>gst_rtsp_media_new ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="returnvalue">GstRTSPMedia</span></a> *
gst_rtsp_media_new (<em class="parameter"><code><span class="type">GstElement</span> *element</code></em>);</pre>
<p>Create a new <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> instance. <em class="parameter"><code>element</code></em>
 is the bin element that
provides the different streams. The <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> object contains the
element to produce RTP data for one or more related (audio/video/..)
streams.</p>
<p>Ownership is taken of <em class="parameter"><code>element</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>element</p></td>
<td class="parameter_description"><p> a <span class="type">GstElement</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-new.returns"></a><h4>Returns</h4>
<p> a new <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> object. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-element"></a><h3>gst_rtsp_media_get_element ()</h3>
<pre class="programlisting"><span class="returnvalue">GstElement</span> *
gst_rtsp_media_get_element (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the element that was used when constructing <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-element.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-element.returns"></a><h4>Returns</h4>
<p> a <span class="type">GstElement</span>. Unref after usage. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-take-pipeline"></a><h3>gst_rtsp_media_take_pipeline ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_take_pipeline (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                              <em class="parameter"><code><span class="type">GstPipeline</span> *pipeline</code></em>);</pre>
<p>Set <em class="parameter"><code>pipeline</code></em>
 as the <span class="type">GstPipeline</span> for <em class="parameter"><code>media</code></em>
. Ownership is
taken of <em class="parameter"><code>pipeline</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-take-pipeline.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>pipeline</p></td>
<td class="parameter_description"><p> a <span class="type">GstPipeline</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-permissions"></a><h3>gst_rtsp_media_set_permissions ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_permissions (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                <em class="parameter"><code><a class="link" href="GstRTSPPermissions.html" title="GstRTSPPermissions"><span class="type">GstRTSPPermissions</span></a> *permissions</code></em>);</pre>
<p>Set <em class="parameter"><code>permissions</code></em>
 on <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-permissions.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>permissions</p></td>
<td class="parameter_description"><p> a <a class="link" href="GstRTSPPermissions.html" title="GstRTSPPermissions"><span class="type">GstRTSPPermissions</span></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-permissions"></a><h3>gst_rtsp_media_get_permissions ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPPermissions.html" title="GstRTSPPermissions"><span class="returnvalue">GstRTSPPermissions</span></a> *
gst_rtsp_media_get_permissions (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the permissions object from <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-permissions.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-permissions.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="GstRTSPPermissions.html" title="GstRTSPPermissions"><span class="type">GstRTSPPermissions</span></a> object, unref after usage. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-shared"></a><h3>gst_rtsp_media_set_shared ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_shared (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                           <em class="parameter"><code><span class="type">gboolean</span> shared</code></em>);</pre>
<p>Set or unset if the pipeline for <em class="parameter"><code>media</code></em>
 can be shared will multiple clients.
When <em class="parameter"><code>shared</code></em>
 is <code class="literal">TRUE</code>, client requests for this media will share the media
pipeline.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-shared.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>shared</p></td>
<td class="parameter_description"><p>the new value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-is-shared"></a><h3>gst_rtsp_media_is_shared ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_is_shared (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Check if the pipeline for <em class="parameter"><code>media</code></em>
 can be shared between multiple clients.</p>
<div class="refsect3">
<a name="gst-rtsp-media-is-shared.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-is-shared.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the media can be shared between clients.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-reusable"></a><h3>gst_rtsp_media_set_reusable ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_reusable (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                             <em class="parameter"><code><span class="type">gboolean</span> reusable</code></em>);</pre>
<p>Set or unset if the pipeline for <em class="parameter"><code>media</code></em>
 can be reused after the pipeline has
been unprepared.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-reusable.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>reusable</p></td>
<td class="parameter_description"><p>the new value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-is-reusable"></a><h3>gst_rtsp_media_is_reusable ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_is_reusable (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Check if the pipeline for <em class="parameter"><code>media</code></em>
 can be reused after an unprepare.</p>
<div class="refsect3">
<a name="gst-rtsp-media-is-reusable.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-is-reusable.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the media can be reused</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-profiles"></a><h3>gst_rtsp_media_set_profiles ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_profiles (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                             <em class="parameter"><code><span class="type">GstRTSPProfile</span> profiles</code></em>);</pre>
<p>Configure the allowed lower transport for <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-profiles.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>profiles</p></td>
<td class="parameter_description"><p>the new flags</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-profiles"></a><h3>gst_rtsp_media_get_profiles ()</h3>
<pre class="programlisting"><span class="returnvalue">GstRTSPProfile</span>
gst_rtsp_media_get_profiles (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the allowed profiles of <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-profiles.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-profiles.returns"></a><h4>Returns</h4>
<p> a <span class="type">GstRTSPProfile</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-protocols"></a><h3>gst_rtsp_media_set_protocols ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_protocols (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                              <em class="parameter"><code><span class="type">GstRTSPLowerTrans</span> protocols</code></em>);</pre>
<p>Configure the allowed lower transport for <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-protocols.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>protocols</p></td>
<td class="parameter_description"><p>the new flags</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-protocols"></a><h3>gst_rtsp_media_get_protocols ()</h3>
<pre class="programlisting"><span class="returnvalue">GstRTSPLowerTrans</span>
gst_rtsp_media_get_protocols (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the allowed protocols of <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-protocols.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-protocols.returns"></a><h4>Returns</h4>
<p> a <span class="type">GstRTSPLowerTrans</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-eos-shutdown"></a><h3>gst_rtsp_media_set_eos_shutdown ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_eos_shutdown (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                 <em class="parameter"><code><span class="type">gboolean</span> eos_shutdown</code></em>);</pre>
<p>Set or unset if an EOS event will be sent to the pipeline for <em class="parameter"><code>media</code></em>
 before
it is unprepared.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-eos-shutdown.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>eos_shutdown</p></td>
<td class="parameter_description"><p>the new value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-is-eos-shutdown"></a><h3>gst_rtsp_media_is_eos_shutdown ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_is_eos_shutdown (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Check if the pipeline for <em class="parameter"><code>media</code></em>
 will send an EOS down the pipeline before
unpreparing.</p>
<div class="refsect3">
<a name="gst-rtsp-media-is-eos-shutdown.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-is-eos-shutdown.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the media will send EOS before unpreparing.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-address-pool"></a><h3>gst_rtsp_media_set_address_pool ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_address_pool (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                 <em class="parameter"><code><a class="link" href="GstRTSPAddressPool.html" title="GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> *pool</code></em>);</pre>
<p>configure <em class="parameter"><code>pool</code></em>
 to be used as the address pool of <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-address-pool.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>pool</p></td>
<td class="parameter_description"><p> a <a class="link" href="GstRTSPAddressPool.html" title="GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-address-pool"></a><h3>gst_rtsp_media_get_address_pool ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPAddressPool.html" title="GstRTSPAddressPool"><span class="returnvalue">GstRTSPAddressPool</span></a> *
gst_rtsp_media_get_address_pool (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the <a class="link" href="GstRTSPAddressPool.html" title="GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> used as the address pool of <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-address-pool.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-address-pool.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="GstRTSPAddressPool.html" title="GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> of <em class="parameter"><code>media</code></em>
. <code class="function">g_object_unref()</code> after
usage. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-buffer-size"></a><h3>gst_rtsp_media_set_buffer_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_buffer_size (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                <em class="parameter"><code><span class="type">guint</span> size</code></em>);</pre>
<p>Set the kernel UDP buffer size.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-buffer-size.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>the new value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-buffer-size"></a><h3>gst_rtsp_media_get_buffer_size ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>
gst_rtsp_media_get_buffer_size (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the kernel UDP buffer size.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-buffer-size.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-buffer-size.returns"></a><h4>Returns</h4>
<p> the kernel UDP buffer size.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-retransmission-time"></a><h3>gst_rtsp_media_set_retransmission_time ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_retransmission_time
                               (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                <em class="parameter"><code><span class="type">GstClockTime</span> time</code></em>);</pre>
<p>Set the amount of time to store retransmission packets.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-retransmission-time.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>time</p></td>
<td class="parameter_description"><p>the new value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-retransmission-time"></a><h3>gst_rtsp_media_get_retransmission_time ()</h3>
<pre class="programlisting"><span class="returnvalue">GstClockTime</span>
gst_rtsp_media_get_retransmission_time
                               (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the amount of time to store retransmission data.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-retransmission-time.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-retransmission-time.returns"></a><h4>Returns</h4>
<p> the amount of time to store retransmission data.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-latency"></a><h3>gst_rtsp_media_set_latency ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_latency (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                            <em class="parameter"><code><span class="type">guint</span> latency</code></em>);</pre>
<p>Configure the latency used for receiving media.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-latency.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>latency</p></td>
<td class="parameter_description"><p>latency in milliseconds</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-latency"></a><h3>gst_rtsp_media_get_latency ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>
gst_rtsp_media_get_latency (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the latency that is used for receiving media.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-latency.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-latency.returns"></a><h4>Returns</h4>
<p> latency in milliseconds</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-setup-sdp"></a><h3>gst_rtsp_media_setup_sdp ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_setup_sdp (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                          <em class="parameter"><code><span class="type">GstSDPMessage</span> *sdp</code></em>,
                          <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPSdp.html#GstSDPInfo" title="GstSDPInfo"><span class="type">GstSDPInfo</span></a> *info</code></em>);</pre>
<p>Add <em class="parameter"><code>media</code></em>
 specific info to <em class="parameter"><code>sdp</code></em>
. <em class="parameter"><code>info</code></em>
 is used to configure the connection
information in the SDP.</p>
<div class="refsect3">
<a name="gst-rtsp-media-setup-sdp.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sdp</p></td>
<td class="parameter_description"><p> a <span class="type">GstSDPMessage</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>info</p></td>
<td class="parameter_description"><p> a <a class="link" href="gst-rtsp-server-GstRTSPSdp.html#GstSDPInfo" title="GstSDPInfo"><span class="type">GstSDPInfo</span></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-setup-sdp.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-handle-sdp"></a><h3>gst_rtsp_media_handle_sdp ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_handle_sdp (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                           <em class="parameter"><code><span class="type">GstSDPMessage</span> *sdp</code></em>);</pre>
<p>Configure an SDP on <em class="parameter"><code>media</code></em>
 for receiving streams</p>
<div class="refsect3">
<a name="gst-rtsp-media-handle-sdp.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sdp</p></td>
<td class="parameter_description"><p> a <span class="type">GstSDPMessage</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-handle-sdp.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-prepare"></a><h3>gst_rtsp_media_prepare ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_prepare (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                        <em class="parameter"><code><a class="link" href="GstRTSPThreadPool.html#GstRTSPThread" title="struct GstRTSPThread"><span class="type">GstRTSPThread</span></a> *thread</code></em>);</pre>
<p>Prepare <em class="parameter"><code>media</code></em>
 for streaming. This function will create the objects
to manage the streaming. A pipeline must have been set on <em class="parameter"><code>media</code></em>
 with
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-take-pipeline" title="gst_rtsp_media_take_pipeline ()"><code class="function">gst_rtsp_media_take_pipeline()</code></a>.</p>
<p>It will preroll the pipeline and collect vital information about the streams
such as the duration.</p>
<div class="refsect3">
<a name="gst-rtsp-media-prepare.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>thread</p></td>
<td class="parameter_description"><p> a <a class="link" href="GstRTSPThreadPool.html#GstRTSPThread" title="struct GstRTSPThread"><span class="type">GstRTSPThread</span></a> to run the
bus handler or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-prepare.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-unprepare"></a><h3>gst_rtsp_media_unprepare ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_unprepare (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Unprepare <em class="parameter"><code>media</code></em>
. After this call, the media should be prepared again before
it can be used again. If the media is set to be non-reusable, a new instance
must be created.</p>
<div class="refsect3">
<a name="gst-rtsp-media-unprepare.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-unprepare.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-status"></a><h3>gst_rtsp_media_get_status ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPMedia.html#GstRTSPMediaStatus" title="enum GstRTSPMediaStatus"><span class="returnvalue">GstRTSPMediaStatus</span></a>
gst_rtsp_media_get_status (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the status of <em class="parameter"><code>media</code></em>
. When <em class="parameter"><code>media</code></em>
 is busy preparing, this function waits
until <em class="parameter"><code>media</code></em>
 is prepared or in error.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-status.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-status.returns"></a><h4>Returns</h4>
<p> the status of <em class="parameter"><code>media</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-suspend-mode"></a><h3>gst_rtsp_media_set_suspend_mode ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_suspend_mode (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                 <em class="parameter"><code><a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode"><span class="type">GstRTSPSuspendMode</span></a> mode</code></em>);</pre>
<p>Control how @ media will be suspended after the SDP has been generated and
after a PAUSE request has been performed.</p>
<p>Media must be unprepared when setting the suspend mode.</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-suspend-mode.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>mode</p></td>
<td class="parameter_description"><p>the new <a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode"><span class="type">GstRTSPSuspendMode</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-suspend-mode"></a><h3>gst_rtsp_media_get_suspend_mode ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode"><span class="returnvalue">GstRTSPSuspendMode</span></a>
gst_rtsp_media_get_suspend_mode (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get how <em class="parameter"><code>media</code></em>
 will be suspended.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-suspend-mode.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-suspend-mode.returns"></a><h4>Returns</h4>
<p> <a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode"><span class="type">GstRTSPSuspendMode</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-suspend"></a><h3>gst_rtsp_media_suspend ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_suspend (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Suspend <em class="parameter"><code>media</code></em>
. The state of the pipeline managed by <em class="parameter"><code>media</code></em>
 is set to
GST_STATE_NULL but all streams are kept. <em class="parameter"><code>media</code></em>
 can be prepared again
with <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-unsuspend" title="gst_rtsp_media_unsuspend ()"><code class="function">gst_rtsp_media_unsuspend()</code></a></p>
<p><em class="parameter"><code>media</code></em>
 must be prepared with <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-prepare" title="gst_rtsp_media_prepare ()"><code class="function">gst_rtsp_media_prepare()</code></a>;</p>
<div class="refsect3">
<a name="gst-rtsp-media-suspend.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-suspend.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-unsuspend"></a><h3>gst_rtsp_media_unsuspend ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_unsuspend (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Unsuspend <em class="parameter"><code>media</code></em>
 if it was in a suspended state. This method does nothing
when the media was not in the suspended state.</p>
<div class="refsect3">
<a name="gst-rtsp-media-unsuspend.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-unsuspend.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-collect-streams"></a><h3>gst_rtsp_media_collect_streams ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_collect_streams (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Find all payloader elements, they should be named pay%d in the
element of <em class="parameter"><code>media</code></em>
, and create <a href="GstRTSPStream.html#GstRTSPStream-struct"><span class="type">GstRTSPStreams</span></a> for them.</p>
<p>Collect all dynamic elements, named dynpay%d, and add them to
the list of dynamic elements.</p>
<p>Find all depayloader elements, they should be named depay%d in the
element of <em class="parameter"><code>media</code></em>
, and create <a href="GstRTSPStream.html#GstRTSPStream-struct"><span class="type">GstRTSPStreams</span></a> for them.</p>
<div class="refsect3">
<a name="gst-rtsp-media-collect-streams.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-create-stream"></a><h3>gst_rtsp_media_create_stream ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
gst_rtsp_media_create_stream (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                              <em class="parameter"><code><span class="type">GstElement</span> *payloader</code></em>,
                              <em class="parameter"><code><span class="type">GstPad</span> *pad</code></em>);</pre>
<p>Create a new stream in <em class="parameter"><code>media</code></em>
 that provides RTP data on <em class="parameter"><code>pad</code></em>
.
<em class="parameter"><code>pad</code></em>
 should be a pad of an element inside <em class="parameter"><code>media-&gt;element</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-create-stream.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>payloader</p></td>
<td class="parameter_description"><p>a <span class="type">GstElement</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>pad</p></td>
<td class="parameter_description"><p>a <span class="type">GstPad</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-create-stream.returns"></a><h4>Returns</h4>
<p> a new <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> that remains valid for as long
as <em class="parameter"><code>media</code></em>
exists. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-n-streams"></a><h3>gst_rtsp_media_n_streams ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>
gst_rtsp_media_n_streams (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the number of streams in this media.</p>
<div class="refsect3">
<a name="gst-rtsp-media-n-streams.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-n-streams.returns"></a><h4>Returns</h4>
<p> The number of streams.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-stream"></a><h3>gst_rtsp_media_get_stream ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
gst_rtsp_media_get_stream (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                           <em class="parameter"><code><span class="type">guint</span> idx</code></em>);</pre>
<p>Retrieve the stream with index <em class="parameter"><code>idx</code></em>
 from <em class="parameter"><code>media</code></em>
.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-stream.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>idx</p></td>
<td class="parameter_description"><p>the stream index</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-stream.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> at index
<em class="parameter"><code>idx</code></em>
or <code class="literal">NULL</code> when a stream with that index did not exist. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-find-stream"></a><h3>gst_rtsp_media_find_stream ()</h3>
<pre class="programlisting"><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
gst_rtsp_media_find_stream (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                            <em class="parameter"><code>const <span class="type">gchar</span> *control</code></em>);</pre>
<p>Find a stream in <em class="parameter"><code>media</code></em>
 with <em class="parameter"><code>control</code></em>
 as the control uri.</p>
<div class="refsect3">
<a name="gst-rtsp-media-find-stream.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>control</p></td>
<td class="parameter_description"><p>the control of the stream</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-find-stream.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> with
control uri <em class="parameter"><code>control</code></em>
or <code class="literal">NULL</code> when a stream with that control did
not exist. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-seek"></a><h3>gst_rtsp_media_seek ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_seek (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                     <em class="parameter"><code><span class="type">GstRTSPTimeRange</span> *range</code></em>);</pre>
<p>Seek the pipeline of <em class="parameter"><code>media</code></em>
 to <em class="parameter"><code>range</code></em>
. <em class="parameter"><code>media</code></em>
 must be prepared with
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-prepare" title="gst_rtsp_media_prepare ()"><code class="function">gst_rtsp_media_prepare()</code></a>.</p>
<div class="refsect3">
<a name="gst-rtsp-media-seek.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>range</p></td>
<td class="parameter_description"><p> a <span class="type">GstRTSPTimeRange</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-seek.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-range-string"></a><h3>gst_rtsp_media_get_range_string ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *
gst_rtsp_media_get_range_string (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                 <em class="parameter"><code><span class="type">gboolean</span> play</code></em>,
                                 <em class="parameter"><code><span class="type">GstRTSPRangeUnit</span> unit</code></em>);</pre>
<p>Get the current range as a string. <em class="parameter"><code>media</code></em>
 must be prepared with
<a class="link" href="GstRTSPMedia.html#gst-rtsp-media-prepare" title="gst_rtsp_media_prepare ()"><code class="function">gst_rtsp_media_prepare()</code></a>.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-range-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>play</p></td>
<td class="parameter_description"><p>for the PLAY request</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>unit</p></td>
<td class="parameter_description"><p>the unit to use for the string</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-range-string.returns"></a><h4>Returns</h4>
<p> The range as a string, <code class="function">g_free()</code> after usage. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-state"></a><h3>gst_rtsp_media_set_state ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_set_state (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                          <em class="parameter"><code><span class="type">GstState</span> state</code></em>,
                          <em class="parameter"><code><span class="type">GPtrArray</span> *transports</code></em>);</pre>
<p>Set the state of <em class="parameter"><code>media</code></em>
 to <em class="parameter"><code>state</code></em>
 and for the transports in <em class="parameter"><code>transports</code></em>
.</p>
<p><em class="parameter"><code>media</code></em>
 must be prepared with <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-prepare" title="gst_rtsp_media_prepare ()"><code class="function">gst_rtsp_media_prepare()</code></a>;</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-state.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>the target state of the media</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>transports</p></td>
<td class="parameter_description"><p>a <span class="type">GPtrArray</span> of <a class="link" href="GstRTSPStreamTransport.html" title="GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> pointers. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GstRtspServer.RTSPStreamTransport]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-set-state.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-set-pipeline-state"></a><h3>gst_rtsp_media_set_pipeline_state ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_set_pipeline_state (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                   <em class="parameter"><code><span class="type">GstState</span> state</code></em>);</pre>
<p>Set the state of the pipeline managed by <em class="parameter"><code>media</code></em>
 to <em class="parameter"><code>state</code></em>
</p>
<div class="refsect3">
<a name="gst-rtsp-media-set-pipeline-state.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>the target state of the pipeline</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-clock"></a><h3>gst_rtsp_media_get_clock ()</h3>
<pre class="programlisting"><span class="returnvalue">GstClock</span> *
gst_rtsp_media_get_clock (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the clock that is used by the pipeline in <em class="parameter"><code>media</code></em>
.</p>
<p><em class="parameter"><code>media</code></em>
 must be prepared before this method returns a valid clock object.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-clock.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-clock.returns"></a><h4>Returns</h4>
<p> the <span class="type">GstClock</span> used by <em class="parameter"><code>media</code></em>
. unref after usage. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-base-time"></a><h3>gst_rtsp_media_get_base_time ()</h3>
<pre class="programlisting"><span class="returnvalue">GstClockTime</span>
gst_rtsp_media_get_base_time (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Get the base_time that is used by the pipeline in <em class="parameter"><code>media</code></em>
.</p>
<p><em class="parameter"><code>media</code></em>
 must be prepared before this method returns a valid base_time.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-base-time.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-base-time.returns"></a><h4>Returns</h4>
<p> the base_time used by <em class="parameter"><code>media</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-use-time-provider"></a><h3>gst_rtsp_media_use_time_provider ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtsp_media_use_time_provider (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                  <em class="parameter"><code><span class="type">gboolean</span> time_provider</code></em>);</pre>
<p>Set <em class="parameter"><code>media</code></em>
 to provide a <span class="type">GstNetTimeProvider</span>.</p>
<div class="refsect3">
<a name="gst-rtsp-media-use-time-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>time_provider</p></td>
<td class="parameter_description"><p>if a <span class="type">GstNetTimeProvider</span> should be used</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-is-time-provider"></a><h3>gst_rtsp_media_is_time_provider ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gst_rtsp_media_is_time_provider (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>);</pre>
<p>Check if <em class="parameter"><code>media</code></em>
 can provide a <span class="type">GstNetTimeProvider</span> for its pipeline clock.</p>
<p>Use <a class="link" href="GstRTSPMedia.html#gst-rtsp-media-get-time-provider" title="gst_rtsp_media_get_time_provider ()"><code class="function">gst_rtsp_media_get_time_provider()</code></a> to get the network clock.</p>
<div class="refsect3">
<a name="gst-rtsp-media-is-time-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-is-time-provider.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>media</code></em>
can provide a <span class="type">GstNetTimeProvider</span>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtsp-media-get-time-provider"></a><h3>gst_rtsp_media_get_time_provider ()</h3>
<pre class="programlisting"><span class="returnvalue">GstNetTimeProvider</span> *
gst_rtsp_media_get_time_provider (<em class="parameter"><code><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *media</code></em>,
                                  <em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>,
                                  <em class="parameter"><code><span class="type">guint16</span> port</code></em>);</pre>
<p>Get the <span class="type">GstNetTimeProvider</span> for the clock used by <em class="parameter"><code>media</code></em>
. The time provider
will listen on <em class="parameter"><code>address</code></em>
 and <em class="parameter"><code>port</code></em>
 for client time requests.</p>
<div class="refsect3">
<a name="gst-rtsp-media-get-time-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>address</p></td>
<td class="parameter_description"><p> an address or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>port</p></td>
<td class="parameter_description"><p>a port or 0</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtsp-media-get-time-provider.returns"></a><h4>Returns</h4>
<p> the <span class="type">GstNetTimeProvider</span> of <em class="parameter"><code>media</code></em>
. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GstRTSPMedia-struct"></a><h3>struct GstRTSPMedia</h3>
<pre class="programlisting">struct GstRTSPMedia;</pre>
<p>A class that contains the GStreamer element along with a list of
<a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> objects that can produce data.</p>
<p>This object is usually created from a <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMediaClass"></a><h3>struct GstRTSPMediaClass</h3>
<pre class="programlisting">struct GstRTSPMediaClass {
  GObjectClass  parent_class;

  /* vmethods */
  gboolean        (*handle_message)  (GstRTSPMedia *media, GstMessage *message);
  gboolean        (*prepare)         (GstRTSPMedia *media, GstRTSPThread *thread);
  gboolean        (*unprepare)       (GstRTSPMedia *media);
  gboolean        (*suspend)         (GstRTSPMedia *media);
  gboolean        (*unsuspend)       (GstRTSPMedia *media);
  gboolean        (*convert_range)   (GstRTSPMedia *media, GstRTSPTimeRange *range,
                                      GstRTSPRangeUnit unit);
  gboolean        (*query_position)  (GstRTSPMedia *media, gint64 *position);
  gboolean        (*query_stop)      (GstRTSPMedia *media, gint64 *stop);
  GstElement *    (*create_rtpbin)   (GstRTSPMedia *media);
  gboolean        (*setup_rtpbin)    (GstRTSPMedia *media, GstElement *rtpbin);
  gboolean        (*setup_sdp)       (GstRTSPMedia *media, GstSDPMessage *sdp, GstSDPInfo *info);

  /* signals */
  void            (*new_stream)      (GstRTSPMedia *media, GstRTSPStream * stream);
  void            (*removed_stream)  (GstRTSPMedia *media, GstRTSPStream * stream);

  void            (*prepared)        (GstRTSPMedia *media);
  void            (*unprepared)      (GstRTSPMedia *media);

  void            (*target_state)    (GstRTSPMedia *media, GstState state);
  void            (*new_state)       (GstRTSPMedia *media, GstState state);

  gboolean        (*handle_sdp)      (GstRTSPMedia *media, GstSDPMessage *sdp);
};
</pre>
<p>The RTSP media class</p>
<div class="refsect3">
<a name="GstRTSPMediaClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.handle-message"></a>handle_message</code></em> ()</p></td>
<td class="struct_member_description"><p>handle a message</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.prepare"></a>prepare</code></em> ()</p></td>
<td class="struct_member_description"><p>the default implementation adds all elements and sets the
pipeline's state to GST_STATE_PAUSED (or GST_STATE_PLAYING
in case of NO_PREROLL elements).</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.unprepare"></a>unprepare</code></em> ()</p></td>
<td class="struct_member_description"><p>the default implementation sets the pipeline's state
to GST_STATE_NULL and removes all elements.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.suspend"></a>suspend</code></em> ()</p></td>
<td class="struct_member_description"><p>the default implementation sets the pipeline's state to
GST_STATE_NULL GST_STATE_PAUSED depending on the selected
suspend mode.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.unsuspend"></a>unsuspend</code></em> ()</p></td>
<td class="struct_member_description"><p>the default implementation reverts the suspend operation.
The pipeline will be prerolled again if it's state was
set to GST_STATE_NULL in suspend.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.convert-range"></a>convert_range</code></em> ()</p></td>
<td class="struct_member_description"><p>convert a range to the given unit</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.query-position"></a>query_position</code></em> ()</p></td>
<td class="struct_member_description"><p>query the current position in the pipeline</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.query-stop"></a>query_stop</code></em> ()</p></td>
<td class="struct_member_description"><p>query when playback will stop</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.create-rtpbin"></a>create_rtpbin</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.setup-rtpbin"></a>setup_rtpbin</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.setup-sdp"></a>setup_sdp</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.new-stream"></a>new_stream</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.removed-stream"></a>removed_stream</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.prepared"></a>prepared</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.unprepared"></a>unprepared</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.target-state"></a>target_state</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.new-state"></a>new_state</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMediaClass.handle-sdp"></a>handle_sdp</code></em> ()</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMediaStatus"></a><h3>enum GstRTSPMediaStatus</h3>
<p>The state of the media pipeline.</p>
<div class="refsect3">
<a name="GstRTSPMediaStatus.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-MEDIA-STATUS-UNPREPARED:CAPS"></a>GST_RTSP_MEDIA_STATUS_UNPREPARED</p></td>
<td class="enum_member_description">
<p>media pipeline not prerolled</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-MEDIA-STATUS-UNPREPARING:CAPS"></a>GST_RTSP_MEDIA_STATUS_UNPREPARING</p></td>
<td class="enum_member_description">
<p>media pipeline is busy doing a clean
                                    shutdown.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-MEDIA-STATUS-PREPARING:CAPS"></a>GST_RTSP_MEDIA_STATUS_PREPARING</p></td>
<td class="enum_member_description">
<p>media pipeline is prerolling</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-MEDIA-STATUS-PREPARED:CAPS"></a>GST_RTSP_MEDIA_STATUS_PREPARED</p></td>
<td class="enum_member_description">
<p>media pipeline is prerolled</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-MEDIA-STATUS-SUSPENDED:CAPS"></a>GST_RTSP_MEDIA_STATUS_SUSPENDED</p></td>
<td class="enum_member_description">
<p>media is suspended</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-MEDIA-STATUS-ERROR:CAPS"></a>GST_RTSP_MEDIA_STATUS_ERROR</p></td>
<td class="enum_member_description">
<p>media pipeline is in error</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPSuspendMode"></a><h3>enum GstRTSPSuspendMode</h3>
<p>The suspend mode of the media pipeline. A media pipeline is suspended right
after creating the SDP and when the client performs a PAUSED request.</p>
<div class="refsect3">
<a name="GstRTSPSuspendMode.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-SUSPEND-MODE-NONE:CAPS"></a>GST_RTSP_SUSPEND_MODE_NONE</p></td>
<td class="enum_member_description">
<p>Media is not suspended</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-SUSPEND-MODE-PAUSE:CAPS"></a>GST_RTSP_SUSPEND_MODE_PAUSE</p></td>
<td class="enum_member_description">
<p>Media is PAUSED in suspend</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GST-RTSP-SUSPEND-MODE-RESET:CAPS"></a>GST_RTSP_SUSPEND_MODE_RESET</p></td>
<td class="enum_member_description">
<p>The media is set to NULL when suspended</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GstRTSPMedia--buffer-size"></a><h3>The <code class="literal">“buffer-size”</code> property</h3>
<pre class="programlisting">  “buffer-size”              <span class="type">guint</span></pre>
<p>The kernel UDP buffer size to use.</p>
<p>Flags: Read / Write</p>
<p>Default value: 524288</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--clock"></a><h3>The <code class="literal">“clock”</code> property</h3>
<pre class="programlisting">  “clock”                    <span class="type">GstClock</span> *</pre>
<p>Clock to be used by the media pipeline.</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--element"></a><h3>The <code class="literal">“element”</code> property</h3>
<pre class="programlisting">  “element”                  <span class="type">GstElement</span> *</pre>
<p>The GstBin to use for streaming the media.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--eos-shutdown"></a><h3>The <code class="literal">“eos-shutdown”</code> property</h3>
<pre class="programlisting">  “eos-shutdown”             <span class="type">gboolean</span></pre>
<p>Send an EOS event to the pipeline before unpreparing.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--latency"></a><h3>The <code class="literal">“latency”</code> property</h3>
<pre class="programlisting">  “latency”                  <span class="type">guint</span></pre>
<p>Latency used for receiving media in milliseconds.</p>
<p>Flags: Read / Write</p>
<p>Default value: 524288</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--profiles"></a><h3>The <code class="literal">“profiles”</code> property</h3>
<pre class="programlisting">  “profiles”                 <span class="type">GstRTSPProfile</span></pre>
<p>Allowed transfer profiles.</p>
<p>Flags: Read / Write</p>
<p>Default value: GST_RTSP_PROFILE_AVP</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--protocols"></a><h3>The <code class="literal">“protocols”</code> property</h3>
<pre class="programlisting">  “protocols”                <span class="type">GstRTSPLowerTrans</span></pre>
<p>Allowed lower transport protocols.</p>
<p>Flags: Read / Write</p>
<p>Default value: GST_RTSP_LOWER_TRANS_UDP | GST_RTSP_LOWER_TRANS_UDP_MCAST | GST_RTSP_LOWER_TRANS_TCP</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--reusable"></a><h3>The <code class="literal">“reusable”</code> property</h3>
<pre class="programlisting">  “reusable”                 <span class="type">gboolean</span></pre>
<p>If this media pipeline can be reused after an unprepare.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--shared"></a><h3>The <code class="literal">“shared”</code> property</h3>
<pre class="programlisting">  “shared”                   <span class="type">gboolean</span></pre>
<p>If this media pipeline can be shared.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--stop-on-disconnect"></a><h3>The <code class="literal">“stop-on-disconnect”</code> property</h3>
<pre class="programlisting">  “stop-on-disconnect”       <span class="type">gboolean</span></pre>
<p>If this media pipeline should be stopped when a client disconnects without TEARDOWN.</p>
<p>Flags: Read / Write</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--suspend-mode"></a><h3>The <code class="literal">“suspend-mode”</code> property</h3>
<pre class="programlisting">  “suspend-mode”             <a class="link" href="GstRTSPMedia.html#GstRTSPSuspendMode" title="enum GstRTSPSuspendMode"><span class="type">GstRTSPSuspendMode</span></a></pre>
<p>How to suspend the media in PAUSED.</p>
<p>Flags: Read / Write</p>
<p>Default value: GST_RTSP_SUSPEND_MODE_NONE</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--time-provider"></a><h3>The <code class="literal">“time-provider”</code> property</h3>
<pre class="programlisting">  “time-provider”            <span class="type">gboolean</span></pre>
<p>Use a NetTimeProvider for clients.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia--transport-mode"></a><h3>The <code class="literal">“transport-mode”</code> property</h3>
<pre class="programlisting">  “transport-mode”           <span class="type">GstRTSPTransportMode</span></pre>
<p>If this media pipeline can be used for PLAY or RECORD.</p>
<p>Flags: Read / Write</p>
<p>Default value: GST_RTSP_TRANSPORT_MODE_PLAY</p>
</div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GstRTSPMedia-new-state"></a><h3>The <code class="literal">“new-state”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *gstrtspmedia,
               <span class="type">gint</span>          arg1,
               <span class="type">gpointer</span>      user_data)</pre>
<p>Flags: Run Last</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia-new-stream"></a><h3>The <code class="literal">“new-stream”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a>  *gstrtspmedia,
               <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *arg1,
               <span class="type">gpointer</span>       user_data)</pre>
<p>Flags: Run Last</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia-prepared"></a><h3>The <code class="literal">“prepared”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *gstrtspmedia,
               <span class="type">gpointer</span>      user_data)</pre>
<p>Flags: Run Last</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia-removed-stream"></a><h3>The <code class="literal">“removed-stream”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a>  *gstrtspmedia,
               <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *arg1,
               <span class="type">gpointer</span>       user_data)</pre>
<p>Flags: Run Last</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia-target-state"></a><h3>The <code class="literal">“target-state”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *gstrtspmedia,
               <span class="type">gint</span>          arg1,
               <span class="type">gpointer</span>      user_data)</pre>
<p>Flags: Run Last</p>
</div>
<hr>
<div class="refsect2">
<a name="GstRTSPMedia-unprepared"></a><h3>The <code class="literal">“unprepared”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a> *gstrtspmedia,
               <span class="type">gpointer</span>      user_data)</pre>
<p>Flags: Run Last</p>
</div>
</div>
<div class="refsect1">
<a name="GstRTSPMedia.see-also"></a><h2>See Also</h2>
<p><a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a>, <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a>, <a class="link" href="GstRTSPSession.html" title="GstRTSPSession"><span class="type">GstRTSPSession</span></a>,
    <a class="link" href="GstRTSPSessionMedia.html" title="GstRTSPSessionMedia"><span class="type">GstRTSPSessionMedia</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>